import http from '../utils/http'

export default {
  data() {
    return {
      loading: false,
    }
  },
  created() {
    console.log('base-page created', this.loading)
    setTimeout(() => {
      this.loading = false
    }, 1000)
  },
  methods: {
    async request(...args) {
      console.log('args', args)
      this.loading = true
      const result = await http(...args)
      this.loading = false
      return result
    }
  }
}
